import { post, get } from '@/plugins/request'


// 验证码登录
export const codeLogin = (params) => post('/api/auth/code/login', params)
// 密码登录
export const pwdLogin = (params) => post('/api/auth/login', params)
// 注册
export const register = (params) => post('/api/auth/register', params)
// 获取验证码
export const getCode = (params) => post('/api/captcha/getCode', params)